import gradio as gr


def greet(ggg):
    return f"Hello {ggg}!"


with gr.Blocks() as demo:
    name = gr.Textbox(label="input your name")
    output = gr.Textbox(label="output")
    btn = gr.Button("greet")

    btn.click(
        fn=greet,
        inputs=name,
        outputs=output,
    )

if __name__ == "__main__":
    demo.launch()
